package unimelb.discussiontracker.twitter.web.converter;

import unimelb.discussiontracker.twitter.data.entity.UserRanking;
import unimelb.discussiontracker.twitter.web.model.UserItem;

public class UserRankingToItemConverter extends AbstractListConverter<UserRanking, UserItem> {

    @Override
    public UserItem convertItem(UserRanking entity) {
        return new UserItem(entity.getUser().getId(), entity.getUser().getName(), entity.getStrength());
    }

}
